package cn.dkdoo;

import cn.dkdoo.utils.annotation.EnableDkdTransactional;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.util.logging.Logger;

@SpringBootApplication()
@EnableDkdTransactional(openTra = true, openRolApi = true)//开启事务
@EnableScheduling
public class BlackhorseDemoApplication {

    private static final Logger LOGGER = Logger.getLogger("BlackhorseDemoApplicationLog");
    public static void main(String[] args) {
        System.setProperty("DEBUG.MONGO", "true");
        System.setProperty("DB.TRACE", "true");
        System.out.println(System.getProperty("java.util.logging.ConsoleHandler.level"));
        SpringApplication.run(BlackhorseDemoApplication.class, args);
        LOGGER.info("aaaa");
        LOGGER.info("bbbb");

    }

}

